package com.xiyou.luckdraw.api.dto.answer;

import com.xiyou.luckdraw.common.constants.ResultCodeConstants;
import com.xiyou.luckdraw.common.exception.ValidateException;
import com.xiyou.luckdraw.common.result.AbstractRequest;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * @ClassName: DeleteAnswerBankRequest
 * @Description:
 * @author: limingxing
 * @Date: 2019-10-09 19:31
 */
@Data
@ApiModel("删除答题请求参数")
public class DeleteAnswerRequest extends AbstractRequest {

    private Integer answerId;
    private Long status;

    @Override
    public void requestCheck() {
        if (null == answerId || null == status) {
            throw new ValidateException(ResultCodeConstants.REQUISITE_PARAMETER_NOT_EXIST.getCode(), ResultCodeConstants.REQUISITE_PARAMETER_NOT_EXIST.getMessage());
        }
    }
}
